<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <h4 class="modal-title">角色信息</h4>
</div>

<div class="modal-body">
    <div class="row col-lg-6">
        <div class="box box-success">
            <div class="box-header with-border">
                <h3 class="box-title">角色信息</h3>
            </div>
            <form role="form" class="validator_form" action="{:url('/Index/User/Role/add')}" id="addRoleForm" method="post">
                <input type="hidden" name="id" value="{$info.id?=$info.id}">
                <div class="box-body">

                    <div class="form-group">
                        <label>角色名称</label>
                        <input type="text" name="name" class="form-control" id="name" required placeholder="name">
                    </div>


                </div>
                <div class="box-footer">
                    <button type="submit" class="btn btn-primary">确认</button>
                </div>

            </form>

        </div>

        <!-- /.box-body -->
        <script>
            $(function() {
                ajax_form_submit("addRoleForm");
            });
        </script>